package com.aoip.telemetry.telemetry.entity.pipeline;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 测站信息配置表
 *
 * @author chenbai
 * @version 1.0
 * @date 2021/7/12 3:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("pipeline_handle_order")
@ApiModel(description = "单站全站处理器解析顺序配置表")
public class PipelineHandleOrderEntity {
    @TableId(value = "table_st_name", type = IdType.NONE)
    @ApiModelProperty("表名称或测站名称")
    private String tableStName;

    @TableField(value = "handle_name")
    @ApiModelProperty("处理器名称")
    private String handleName;

    @TableField(value = "handle_order")
    @ApiModelProperty("同一表或站的处理器顺序")
    private String handleOrder;

    @TableField(value = "handle_level")
    @ApiModelProperty("处理器处理等级，分二级。1：报错后，继续执行剩下处理器。2：报错后，停止后续处理器的执行")
    private Integer handleLevel;

    @ApiModelProperty(value = "是否有效（0：正常，1：无效）")
    @TableField("valid")
    private Integer valid;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private LocalDateTime modifyTime;

    @TableField(value = "del_flag", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private String delFlag;

    @TableField(value = "bz")
    @ApiModelProperty("备注信息")
    private String bz;
}
